Skip to content

Only set prop types in non-production builds.#59

Open
realityking wants to merge 1 commit intogaearon:masterfrom
realityking:prop-types
Open

Only set prop types in non-production builds.#59
realityking wants to merge 1 commit intogaearon:masterfrom
realityking:prop-types

Conversation

@realityking
Copy link

This will enable a bundler to omit the prop-types import. I don't think any tool is set up to actually do this (recognize the import is unused and eliminate it before bundling) but it'll save a few bytes either way.

This will enable a bundler to omit the prop-types import.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant